package com.yuntu.chapter4;

import java.util.Scanner;

/**
 * @author MrWang-shuizhishuiheshui
 * @description
 */
public class Demo3 {
    public static void main(String[] args) {
        Scanner input= new Scanner(System.in);
        String answer="";
        do {
            System.out.println("上机编写测试题!!!努力中......");
            System.out.println("检查是否合格??");
            answer=input.next();
        }while(!answer.equals("是"));

        /*
        Cannot resolve symbol 'answer'
        answer变量无法解析(获取不到) : 1.变量声明的作用域不对  2.变量没有声明

         */



    }
}
